<div class="al-modal-view">
  <div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" ng-click="cancel()">
      <span aria-hidden="true" class="glyphicon glyphicon-remove"></span>
      <span class="sr-only">Close</span>
    </button>
    <h4 class="modal-title ok-color">{{modalTitle}}</h4>
  </div>
  <div class="modal-body">
      <ng-form name="modalForm" class="form-horizontal form-validation" role="form">
        <div class="form-group" ng-if="info">
          <label class="col-sm-3 control-label">所属公寓</label>
          <div class="col-sm-8">
            <div class="form-control">{{info.apartmentName}}</div>
          </div>
        </div>
        <div class="form-group" ng-if="info">
          <label class="col-sm-3 control-label">所属楼栋</label>
          <div class="col-sm-8">
            <div class="form-control">{{info.buildingName}}</div>
          </div>
        </div>
        <div class="form-group" ng-if="info">
          <label class="col-sm-3 control-label">楼层ID</label>
          <div class="col-sm-8">
            <input class="form-control" ng-model="data.id" type="text"
                   required ng-disabled="type!='new'"
                   placeholder="楼层ID" maxlength="11"/>
          </div>
        </div>
        <div class="form-group" ng-if="info">
          <label class="col-sm-3 control-label">楼层名称</label>
          <div class="col-sm-8">
            <input class="form-control" ng-model="data.name" type="text" required
                   placeholder="楼层名称" maxlength="32"/>
          </div>
        </div>
        <div class="form-group">
          <label class="col-sm-3 control-label">平面图</label>
          <div class="col-sm-8">
            <div class="input-group">
              <input type="text"  name="thumb" class="form-control" ng-model="data.thumb">
              <span class="input-group-addon" ng-click="showThumbPhotoUpload=!showThumbPhotoUpload">
                    <i class="glyphicon glyphicon-upload"></i>
                  </span>
            </div>
          </div>
        </div>
        <div class="form-group" ng-if="data.thumb">
          <div class="col-sm-8 col-sm-offset-3">
            <div class="wf-thumbnail-container">
              <img ng-src="{{data.thumb}}" class="wf-thumbnail" alt="找不到该图片" maxlength="1024">
            </div>
          </div>
        </div>
        <div class="form-group" ng-show="showThumbPhotoUpload">
          <div class="col-sm-8 col-sm-offset-3">
            <input id="thumb-upload-input" class="file" name="file" type="file" data-min-file-count="1">
          </div>
        </div>
        <div class="form-group">
          <label class="col-sm-3 control-label">状态</label>
          <div class="col-sm-8">
            <nobr>
              <label class="ui-radio" ng-repeat="option in modalEnableList">
                <input name="status" ng-value="option.value" type="radio" ng-model="data.enabled">
                <span>{{option.name}}</span>
              </label>
            </nobr>
          </div>
        </div>
      </ng-form>
  </div>
  <div class="modal-footer">
      <!--<button class="btn btn-danger no-border" ng-if="type!='new'"-->
              <!--ng-confirm-click="确认要删除吗？" ng-click="removeData()">删除</button>-->
    <button class="btn btn-warning no-border" type="button" ng-click="cancel()">取消</button>
    <button class="btn btn-primary no-border" type="button" ng-click="confirm()" ng-disabled="modalForm.$invalid">确定</button>
  </div>
</div>